export const mapping = {
  data() {
    return {
      genderArr: [{ // 性别数组
        val: '女',
        key: 0
      }, {
        val: '男',
        key: 1
      }],
      ages: [], // 年龄数组
      jobTags: [{ // 岗位标签数组
        val: '基层',
        key: 0
      }, {
        val: '中层',
        key: 1
      }, {
        val: '高层',
        key: 2
      }],
      dictsEnum: {
        employeeNum: 'number_of_employees', // 企业人数
        recentMonth: 'num_month', // 近几个月 月份
        industryPid: '1833694466950553601', // 行业pid
        enterprisePostPid: '1730121314664J3BI', // 企业联系人pid
      },
      // 审核状态
      auditStatusMapping: {
        '0': 'inreview',
        '1': 'success',
        '2': 'failed'
      },
      // 状态映射
      statusMapping: {
        'success': {
          imgSrc: 'https://talentsupload.oss-cn-beijing.aliyuncs.com/miniprogram/common/success.png',
          title: '成功',
        },
        'inreview': {
          imgSrc: 'https://talentsupload.oss-cn-beijing.aliyuncs.com/miniprogram/common/success.png',
          title: '审核中',
        },
        'failed': {
          imgSrc: 'https://talentsupload.oss-cn-beijing.aliyuncs.com/miniprogram/common/failed.png',
          title: '失败',
        },
        'freeze': {
          imgSrc: 'https://talentsupload.oss-cn-beijing.aliyuncs.com/miniprogram/common/failed.png',
          title: '冻结',
        }
      },
      // 接口需要用到的固定id映射
      idMapping: {
        aboutUs: '1861049562118701057',  // 关于我们
        useHelp: '1861051581818683393' // 使用帮助
      }
    }
  },
  created() {
    for (let i = 0; i < 65; ++i) {
      if ((i + 1) >= 18) {
        this.ages.push({
          key: i + 1,
          val: i + 1
        })
      }
    }
  },
  methods: {

  }
}